Optimal. Leaf size=32 \[ \frac{B \log (a+b x)}{b^2}-\frac{A b-a B}{b^2 (a+b x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0234505, antiderivative size = 32, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {27, 43} \[ \frac{B \log (a+b x)}{b^2}-\frac{A b-a B}{b^2 (a+b x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 43
Rubi steps
\begin{align*} \int \frac{A+B x}{a^2+2 a b x+b^2 x^2} \, dx &=\int \frac{A+B x}{(a+b x)^2} \, dx\\ &=\int \left (\frac{A b-a B}{b (a+b x)^2}+\frac{B}{b (a+b x)}\right ) \, dx\\ &=-\frac{A b-a B}{b^2 (a+b x)}+\frac{B \log (a+b x)}{b^2}\\ \end{align*}
Mathematica [A] time = 0.0101938, size = 31, normalized size = 0.97 \[ \frac{a B-A b}{b^2 (a+b x)}+\frac{B \log (a+b x)}{b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 39, normalized size = 1.2 \begin{align*} -{\frac{A}{b \left ( bx+a \right ) }}+{\frac{aB}{{b}^{2} \left ( bx+a \right ) }}+{\frac{B\ln \left ( bx+a \right ) }{{b}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.976292, size = 46, normalized size = 1.44 \begin{align*} \frac{B a - A b}{b^{3} x + a b^{2}} + \frac{B \log \left (b x + a\right )}{b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.26868, size = 78, normalized size = 2.44 \begin{align*} \frac{B a - A b +{\left (B b x + B a\right )} \log \left (b x + a\right )}{b^{3} x + a b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.36861, size = 27, normalized size = 0.84 \begin{align*} \frac{B \log{\left (a + b x \right )}}{b^{2}} + \frac{- A b + B a}{a b^{2} + b^{3} x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1139, size = 43, normalized size = 1.34 \begin{align*} \frac{B \log \left ({\left | b x + a \right |}\right )}{b^{2}} + \frac{B a - A b}{{\left (b x + a\right )} b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]